// 定义购物车的接口请求
import axios from '../https/axios'
// 1.购物车列表数据
export function CartList(data: any) {
    return axios({
        method: 'post',
        url: '/api/cart/list',
        data: data
    })
}
// 2.删除某条数据
export function remove(data: any) {
    return axios({
        method: 'post',
        url: '/api/cart/remove',
        data: data
    })
}
// 3.更新数量
export function updatenum(data: any) {
    return axios({
        method: 'post',
        url: '/api/cart/updatenum',
        data: data
    })
}
// 4.更新当前购物车选中状态
export function selectone(data: any) {
    return axios({
        method: 'post',
        url: '/api/cart/selectone',
        data: data
    })
}
// 5.更新所有购物车数据选中状态
export function selectAll(data: any) {
    return axios({
        method: 'post',
        url: '/api/cart/selectall',
        data: data
    })
}
